package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.StarInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StarInfoRepository extends JpaRepository<StarInfoEntity, String> {

    StarInfoEntity findByTrainIdAndUserId(String trainId, String userId);
    List<StarInfoEntity> findByUserId(String userId);
}
